using System;
using System.Collections.Generic;
namespace DalatCooking.Core
{
    public abstract class ICourseRepository
    {
        public abstract int Insert(Course entity);
        public abstract int            Update(Course entity);
        public abstract bool Delete(Course entity);
        public abstract bool Delete(int id);
        public abstract List<Course> FindAll();
        public abstract Course FindById(int id);
        public abstract Course Single(int id);
        public abstract Course FindByName(string name);
        public abstract List<Course> PagingSql(int pageSize, int pageNum, out int totalRowCount);
        public abstract List<Course> PagingLinq(int pageSize, int pageNum, out int totalRowCount);
        public abstract List<Course> FindByKeyword(int pageSize, int pageNum, out int totalRowCount, string keyword);
        public abstract bool SetActive(int id);
        public abstract bool SetSortIndex(int id, int isup);
        public abstract bool RemoveSelectedItem(int id);
        public abstract bool RemoveAll();
        public abstract bool RestoreSelectedItem(int id);
        public abstract bool RestoreAll();
        public abstract List<Course> CourseOfPerson(int personId);
    }
}